package io.renren.modules.generator.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.R;
import io.renren.modules.generator.entity.CustomerEntity;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-11-27 10:21:22
 */
public interface CustomerService extends IService<CustomerEntity> {

    List<CustomerEntity> queryPage(Map<String, Object> query);

    int queryPageTotal(Map<String, Object> params);

    void update(CustomerEntity customer);

    void save(CustomerEntity customer);

    void updateStatusByIds(List<Integer> list);

    CustomerEntity info(Integer id);

    CustomerEntity queryEntityByCode(String code);

    R importFile(Workbook book);

    List<CustomerEntity> queryEntitiesList(String code);

    List<CustomerEntity> queryEntitiesListByAddressId(Integer addressId);
}

